home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / PowerPC / Dev / PPCRelease / include / powerup / ppclib / semaphore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-13  |  585 b   |  24 lines

  1. #ifndef POWERUP_PPCLIB_SEMAPHORE_H
  2. #define POWERUP_PPCLIB_SEMAPHORE_H
  3.  
  4. #include <utility/tagitem.h>
  5.  
  6. #define    PPCSEMAPHORETAG_BASE    (TAG_USER + 0x25000)
  7.  
  8. /* Sets the Name for the Semaphore and automaticly adds the Semaphore to
  9.    the public List
  10.  */
  11. #define    PPCSEMAPHORETAG_NAME    (PPCSEMAPHORETAG_BASE+0)
  12.  
  13.  
  14. #define    PPCSEMAPHORETAG_ERROR    (PPCSEMAPHORETAG_BASE+1)
  15.  
  16. #define    PPCSEMAPHOREERROR_OK        0
  17. #define    PPCSEMAPHOREERROR_MEMORY    1
  18. #define    PPCSEMAPHOREERROR_ALREDYEXISTS    2
  19. #define    PPCSEMAPHOREERROR_NOTFOUND    3
  20. #define    PPCSEMAPHOREERROR_OBTAINED    4
  21. #define    PPCSEMAPHOREERROR_NONAME    5
  22.  
  23. #endif
  24.